import 'package:fish_redux/fish_redux.dart';

enum LoginAction {
  onConfirm,
  onWxLogin,
  onRegister,
  onReset,
  onVerifyCode,
  countDown,
  input,
  onAgreement,
  selectGander,
}

class LoginActionCreator {
  static Action onConfirm() {
    return const Action(LoginAction.onConfirm);
  }

  static Action onWxLogin() {
    return const Action(LoginAction.onWxLogin);
  }

  static Action onRegister() {
    return const Action(LoginAction.onRegister);
  }

  static Action onReset() {
    return const Action(LoginAction.onReset);
  }

  static Action onVerifyCode() {
    return const Action(LoginAction.onVerifyCode);
  }

  static Action onCountDown(int count) {
    return Action(LoginAction.countDown, payload: count);
  }

  static Action onAgreement(int index) {
    return Action(LoginAction.onAgreement, payload: index);
  }

  static Action onInput(Map<String, String> map) {
    return Action(LoginAction.input, payload: map);
  }

  static Action selectGander(String gander) {
    return Action(LoginAction.selectGander, payload: gander);
  }
}
